/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package do_.com.bpd.hr.datamodel.job;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Developer
 */
@Entity
public class UnchartedPosition extends Position implements Serializable {

    @OneToMany
    protected List<ChartedPosition> equivalentChartedPositions;
    protected String companyName;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public List<ChartedPosition> getEquivalentChartedPositions() {
        return equivalentChartedPositions;
    }

    public void setEquivalentCurrentPositions(List<ChartedPosition> equivalentChartedPositions) {
        this.equivalentChartedPositions = equivalentChartedPositions;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof UnchartedPosition)) {
            return false;
        }
        UnchartedPosition other = (UnchartedPosition) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "do_.com.bpd.hr.datamodel.profile.AbstractPosition[ id=" + id + " ]";
    }
}
